//
//  MBBaseViewModel.m
//  MemberBusiness-ios
//
//  Created by cherry pu on 2018/4/18.
//  Copyright © 2018年 zhangXin. All rights reserved.
//

#import "MBBaseViewModel.h"

@interface MBBaseViewModel ()
@property (nonatomic,copy) NSString *title;

@end

@implementation MBBaseViewModel

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setUpData];
    }
    return self;
}

- (void)setUpData
{
    UIBarButtonItem *item;
    if (@available(iOS 9.0, *)) {
        item = [UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UINavigationBar class]]];
    } else {
        item = [UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil];
    }
    item.tintColor = [UIColor colorWithR:51 G:51 B:51];
    
    NSMutableDictionary * itemAttr = [NSMutableDictionary dictionary];
    itemAttr[NSForegroundColorAttributeName] = [UIColor colorWithR:51 G:51 B:51];
    itemAttr[NSFontAttributeName] = [UIFont lf_systemFontOfSize:15];
    [item setTitleTextAttributes:itemAttr forState:UIControlStateNormal];

}


@end
